QT += core gui serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = SerCom
TEMPLATE = app

SOURCES += $$PWD/src/main.cpp \
           $$PWD/src/mainwindow.cpp

HEADERS += $$PWD/src/mainwindow.h

FORMS += $$PWD/ui/mainwindow.ui

RESOURCES += \
    content.qrc

DISTFILES += \
    other.rc

RC_FILE = other.rc

#配置输出目录
CONFIG(debug, debug|release){
    #运行程序
    DESTDIR = $$PWD/build/Debug
    MAKEFILE = ./build/Debug/MakeFile
    #临时生成文件归属目录
    MOC_DIR = $$PWD/tmp/Debug/moc
    RCC_DIR = $$PWD/tmp/Debug/rcc
    OBJECTS_DIR = $$PWD/tmp/Debug/obj
    UI_DIR = $$PWD/tmp/Debug/ui
}else{
    #运行程序
    DESTDIR = $$PWD/build/Release
    MAKEFILE = ./build/Release/MakeFile
    #临时生成文件归属目录
    MOC_DIR = $$PWD/tmp/Release/moc
    RCC_DIR = $$PWD/tmp/Release/rcc
    OBJECTS_DIR = $$PWD/tmp/Release/obj
    UI_DIR = $$PWD/tmp/Release/ui
}

#target.path = /opt/$${TARGET}/bin
#!isEmpty(target.path): INSTALLS += target
